const express = require('express')
const router = express.Router()

// get 方法
router.get('/get', (req, res) => {
    const query = req.query
    res.send({ status: 200, msg: 'GET 请求成功', data: query })
})
// post 方法
router.post('/post', (req, res) => {
    const body = req.body
    res.send({ status: 200, msg: "POST 请求成功", data: body })
})

module.exports = router